/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.vsu.csf.qasystem.morph;

import java.util.LinkedList;
import java.util.List;
import ru.vsu.csf.qasystem.morph.enumtypes.ParticleType;

/**
 * Частица.
 * @author grinev
 */
public class Particle extends Word {
    /**
     * Тип частицы.
     */
    private ParticleType type;
    
    public Particle(String text, ParticleType type) {
        this.text = text;
        this.mainForm = text;
        this.type = type;
    }

    public ParticleType getType() {
        return type;
    }

    public void setType(ParticleType type) {
        this.type = type;
    }
    
    public static List<Particle> getAllParticles() {
        List<Particle> result = new LinkedList<Particle>();
        result.add(new Particle("не", ParticleType.NOT));
        result.add(new Particle("менее", ParticleType.LESS));
        result.add(new Particle("пусть", ParticleType.LET));
        result.add(new Particle("более", ParticleType.MORE));
        result.add(new Particle("ли", ParticleType.WHETHER));
        result.add(new Particle("бы", ParticleType.WOULD));
        return result;
    }
}
